package com.example.demo.dao;

import com.example.demo.entity.BuildingEntity;
import com.example.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BuildingDao {

    /**
     * 通过ID查询单条数据
     */
    public BuildingEntity queryBuildingById(Integer bid);


    /**
     * 通过实体作为筛选条件查询
     */
    public List<BuildingEntity> queryBuildingAll();

    /**
     * 新增数据
     */
    public int insertBuilding(BuildingEntity building);

    /**
     * 修改数据
     */
    public int updateBuilding(BuildingEntity building);

    /**
     * 通过主键删除数据
     */
    public int deleteBuildingById(Integer bid);
    //重名
    public BuildingEntity checkbulidingDao(BuildingEntity building);
}